package com.common.help.test10;

import java.io.Serializable;

public class Person extends Creature implements ISpeakLister,Serializable{

    private String name;
    private int age;
    public int id;
    public static String weather = "今天天气好晴朗！！";

    public Person(){
        super();
        System.out.println("Person--Person()");
    }

    public Person(String name,int age,int id){
        super();
        this.name = name;
        this.age = age;
        this.id = id;
        System.out.println("Person--Person(String name,int age,int id)");
    }

    private Person(String name){
        super();
        this.name = name;
    }

    private String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static void showWeather(){
        System.out.println("weather: "+ weather);
    }

    @Override
    public String toString() {
        return "Persion [name=" + name + ", age=" + age + ", id=" + id +",weather="+weather+ "]---"+super.toString();
    }

    @Override
    public void speak(String talk) {
        System.out.println("talk: "+ talk);
    }
    //inner class
    public class innerClass {

    }

    private class innerPriClass{

    }
}